package com.star.uc.infras.properties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhouhengzhe
 * @date 2023/11/17
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "star.monitor")
public class MonitorProperties {

    private MonitorSmsProperties sms;

    private MonitorEmailProperties email;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class MonitorSmsProperties {
        private Integer type;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class MonitorEmailProperties {
        private Integer type;
    }
}
